package org.CSL.app.platform.domain.admin;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String ADMIN = "admin";
	public static final String SYSTEM = "system";

	private String personNo;
	private String name;
	private String pwdMD5;
	private String pwdRaw;
	private String realName;
	private int gender = 0;
	private int marriaged = 0;
	private String mobile;
	private String phone;
	private String email;
	private String QQ;
	private java.util.Date regDate;
	private java.util.Date birthday;
	private User checker;
	private java.util.Date checkDate;
	private int status;
	/**用户与角色多对多*/
	private Set<Role> roles = new HashSet<Role>(0);
	
	/**用户与权限多对多*/
    private Set<Privilege> privileges = new HashSet<Privilege>(0);
	
	/**用户与用户组多对多*/
	private Set<UserGroup> userGroups = new HashSet<UserGroup>(0);
	
	public User() {
		
		
	}

	public String getPersonNo() {
		return personNo;
	}

	public void setPersonNo(String personNo) {
		this.personNo = personNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwdMD5() {
		return pwdMD5;
	}

	public void setPwdMD5(String pwdMD5) {
		this.pwdMD5 = pwdMD5;
	}

	public String getPwdRaw() {
		return pwdRaw;
	}

	public void setPwdRaw(String pwdRaw) {
		this.pwdRaw = pwdRaw;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public int getMarriaged() {
		return marriaged;
	}

	public void setMarriaged(int marriaged) {
		this.marriaged = marriaged;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	public java.util.Date getRegDate() {
		return regDate;
	}

	public void setRegDate(java.util.Date regDate) {
		this.regDate = regDate;
	}

	public java.util.Date getBirthday() {
		return birthday;
	}

	public void setBirthday(java.util.Date birthday) {
		this.birthday = birthday;
	}

	public User getChecker() {
		return checker;
	}

	public void setChecker(User checker) {
		this.checker = checker;
	}

	public java.util.Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(java.util.Date checkDate) {
		this.checkDate = checkDate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Set<Privilege> getPrivileges() {
		return privileges;
	}

	public void setPrivileges(Set<Privilege> privileges) {
		this.privileges = privileges;
	}

	public Set<UserGroup> getUserGroups() {
		return userGroups;
	}

	public void setUserGroups(Set<UserGroup> userGroups) {
		this.userGroups = userGroups;
	}
	
    
}
